package com.wlps.vo.sendcenter.inoutform;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author ZWYZY
 * @since 2020/8/10
 */
@ApiModel(value = "创建出库单")
@Data
public class ReturnOutOfStockAddVo {
    @ApiModelProperty(value = "供应商名称")
    @NotNull(message = "必须填供应商名称")
    @NotBlank(message = "供应商名称不能为空")
    private String supplierName;

    @ApiModelProperty(value = "商品名称")
    @NotBlank(message = "商品名称不能为空")
    @NotNull(message = "必须填商品名称")
    private String productName;

    @ApiModelProperty(value = "计量单位")
    private String unitofmeasurement;

    @ApiModelProperty(value = "型号")
    @NotBlank(message = "型号不能为空")
    @NotNull(message = "必须填型号")
    private String model;

    @ApiModelProperty(value = "商品应出库数量")
    @NotNull(message = "必须填商品应入库数量")
    private Long quantityReturned;
//    @ApiModelProperty(value = "实际出库数量")
//    private Long actualVolume;
//    @DateTimeFormat(pattern = "yyyy-MM-dd")
//    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")//数据库导出页面时json格式化
//    @ApiModelProperty(value = "出库日期")
//    private Date date;


//    @ApiModelProperty(value = "任务状态,未出库为0，已出库为1")
//    private Integer taskStatus;
    @ApiModelProperty(value = "备注")
    private String remark;
}
